package com.example.hcbmsm.controller;

import com.example.hcbmsm.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Xinghm
 * @version 1.0
 * @since 2024/11/5 17:25
 */
@RestController
@CrossOrigin
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    private AdminService adminService;
    @PostMapping("/getUser")
    public Map getUser(String token) {
        return adminService.getUser(token);
    }
}
